﻿using System.Runtime.InteropServices;

namespace Csharp01;

class Program
{
    // [DllImport("MathLibrary.dll", CallingConvention = CallingConvention.Cdecl)]
    // private static extern int Add(int a, int b);

    [DllImport("MathLibrary.dll", CallingConvention = CallingConvention.Cdecl)]
    private static extern int Subtract(int a, int b);

    private static void Main(string[] args)
    {
        // int add = Add(1, 2);
        // Console.WriteLine(add);
        int sub = Subtract(100, 2);
        Console.WriteLine(sub);
    }
}